﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace PlanetenGravity
{
    public delegate void CollisionEvent(object sender, EventArgs e);
    public class Sprite
    {
        public event CollisionEvent OnCollision;

        public virtual void Collided()
        {
            if (OnCollision != null)
                OnCollision(this, EventArgs.Empty);
        }

        public Texture2D Texture;
        public float Radius;
        public float Mass;
        public Vector2 Origin;
        public Vector2 Position;
        public Vector2 Speed;
    }
}
